#ifndef __BSP_H__
#define __BSP_H__

#include "main.h"

uint16_t getAdcCvRaw(void);
uint16_t getAdcCcRaw(void);



extern void bsp_dacInitial(void);
extern void bsp_setDacCV(double val);
extern void bsp_setDacCC(double val);

extern void bsp_adcInitial(void);
extern double bsp_getAdcCV(void);
extern double bsp_getAdcCC(void);
extern int bsp_PWMEnable(uint8_t state);

void USER_UART_IRQHandler(UART_HandleTypeDef *huart);

#endif //__BSP_H__
